package com.thxr.sso.server.pojo;

/**
 * @Description TODO
 * @Author silence.Z
 * @Date 2020/10/20 14:27
 * @Version 1.0
 **/

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

@AllArgsConstructor
@NoArgsConstructor
@Table(name = "zt_user") //声明pojo对应的表名
@Data
@Accessors(chain = true)//添加链式调用
@NameStyle(Style.normal)//不自动驼峰转换
public class User implements Serializable {
    @Id //声明主键
    @KeySql(useGeneratedKeys = true) //声明主键自增
    private Integer id;
    private Integer dept;
    private String account;
    private String password;
    private String role;
    private String realname;
    private String nickname;
    private String commiter;
    private String avatar;
    private Date birthday;
    private String gender;
    private String email;
    private String skype;
    private String qq;
    private String mobile;
    private String phone;
    private String weixin;
    private String dingding;
    private String slack;
    private String whatsapp;
    private String address;
    private String zipcode;
    private Date join;
    private Integer visits;
    private String ip;
    private Integer last;
    private Integer fails;
    private Timestamp locked;
    private String ranzhi;
    private Integer score;
    private Integer scoreLevel;
    private String deleted;
    private String clientStatus;
    private String clientLang;

}

